package site.teamo.biu.flink.common.function.descriptor;

import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.annotation.JSONCreator;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class OperatorDescriptor {
    private String name;
    private String className;
    private String type;
    private String description;
    private List<OperatorParameterDescriptor> operatorParameters;

    @JSONCreator
    public OperatorDescriptor(List<JSONObject> operatorParameters) {
        this.operatorParameters = OperatorParameterDescriptor.generateList(operatorParameters);
    }

}
